import request from '../utils/request'

/**
 *  *获取目录的接口
 * @param {*} page
 * @param {*} pagesize
 * @returns
 */
export const getdirectory = (subjectID) => {
  return request.get('/directorys', { params: { subjectID } })
}

/**
 * 获取企业的接口
 * @returns
 */
export const getenterprise = () => {
  return request.get('/companys')
}

/**
 *获取标签的接口
 * @param {*} subjectID
 * @returns
 */
export const gettags = (subjectID) => {
  return request.get('/tags', { params: { subjectID } })
}

/**
 *获取详情
 * @param {*} id
 * @returns
 */
export const getenterpriseid = (id) => {
  return request.get(`/companys/${id}`)
}
